<cfprocessingdirective pageEncoding="utf-8" />
	<cfscript>
	comment = event.getValue('comment');
	validator = event.getValue('comment.validator', structNew() );
	action = event.linkTo( event.getValue('action') );
	</cfscript>
	<cfoutput>
	
    <div class="standardForm">	
	
        <form action="#action#" method="post">
        
		<fieldset>
	        <legend>Comment</legend>
	
			<input type="hidden" id="IdComment" name="IdComment" value="#comment.getIdComment()#" />
        				
			<input type="hidden" id="Idpost" name="Idpost" value="#comment.getIdpost()#" />
						
            <label for="Comment">Comment</label>
			<textarea name="Comment" rows="5" cols="80" style="width: 80%" class="textareasimple">#comment.getComment()#</textarea>
			<cfif structKeyExists( validator, 'Comment' ) >
			<span class="formError">#validator['Comment'][1]#</span>
			</cfif>
						
            <label for="Website">Website</label>
			<input type="text" id="Website" name="Website" class="formBig" value="#comment.getWebsite()#" />
			
            <br />
					
		</fieldset>
		
		<fieldset>
	    	<legend>Status:</legend>
				<label for="Status0"><input type="radio" id="Status0" name="Status" value="0" <cfif comment.getStatus() eq 0>checked="checked"</cfif> />Not approved</label>
				<label for="Status1"><input type="radio" id="Status1" name="Status" value="1" <cfif comment.getStatus() eq 1>checked="checked"</cfif> />Approved</label>
				<label for="Status2"><input type="radio" id="Status2" name="Status" value="2" <cfif comment.getStatus() eq 2>checked="checked"</cfif> />Spam</label>
		</fieldset>
			
        <div>
            <input type="submit" value="Submit" class="formButton" />
        </div>
		
		<br />		
			
		</form>
    </div>
		
    </cfoutput>